package com.example.designpatterns.behavioral.command;

/**
 * 具体命令，关机
 *
 * @author scott
 */
public class TurnOffCommand implements Command {

    private TV tv;

    public TurnOffCommand(TV tv) {
        this.tv = tv;
    }

    @Override
    public void execute() {
        tv.turnOff();
    }

}
